#include "stdafx.h"

#include "Engine.h"

void InitKillers(SEngineData *ed)
{
	memset(ed->keyKillers, 0, sizeof(ZOBRIST_KEY) * MAX_DEPTH * MAX_KILLER);
}

void SetKiller(SEngineData *ed, ZOBRIST_KEY keyMove, int ply)
{
	if(ed->bUseKillerMoves == false)
		return;

	if(ed->keyKillers[ply][0] != keyMove)
	{
		ed->keyKillers[ply][1] = ed->keyKillers[ply][0];
		ed->keyKillers[ply][0] = keyMove;
	}
}
